home *** CD-ROM | disk | FTP | other *** search
- global colorauthoringpath
- global MoveFileOne
- global MovePathOne
- global Onedata
- global movefiletwo
- if there is a window Movefileone then close window movefileone
- if there is a window movefiletwo then close window movefiletwo
- put the long name of this stack into hold
- delete word 1 of hold
- delete char 1 of hold
- delete the last char of hold
- put hold into MyPath
- do showdialog 1, "512","Do you want to move resources between this stack and another file or between two other files?" , true
- put the result into test
- if test is "2" then do restext("TEXT", "Exit", colorauthoringpath)
- if test is "3" then
- answer file "Choose any file to move resources to or from:"
- if it is empty then do restext("TEXT", "Exit", colorauthoringpath)
- set cursor to watch
- put it into MovePathOne
- if MovePathOne is Mypath then
- beep
- set cursor to watch
- put FullResList("T=ALL", "O=TNIS") into Onedata
- put MyPath into MovePathOne
- put "Current Stack" into movefileone
- do restext ("TEXT", "FinishOne", colorauthoringpath)
- do restext ("TEXT", "MakeTwo", colorauthoringpath)
- do restext("TEXT", "Exit", colorauthoringpath)
- end if
- put MovePathOne into process
- put FullResList("T=ALL", "O=TNIS", "W=" & MovePathOne) into Onedata
- if Onedata is "Error : This file has no resource fork" then
- answer "You will be adding resources to a file without a resource fork." &&¬
- "This isn't a problem as long as you know what you want." with "Cancel" or "Okay"
- if it is "Okay" then put "Empty" & return & " " into Onedata
- if it is "Cancel" then do restext("TEXT", "Exit", colorauthoringpath)
- end if
- put the last char of process into holdfilename
- delete last char of process
- repeat until it is ":"
- get the last char of process
- if it is not ":" then put it before char 1 of holdFileName
- delete the last char of process -- this could be shorter with
- end repeat -- changing itemDelimiter to ":", but would require HC 2.1
- put holdfilename into Movefileone
- do restext ("TEXT", "finishone", colorauthoringpath)
- end if
- if test is "1" then
- if the short name of this stack is "ResGenie‚Ñ¢" then
- showdialog 1, "503","Please use Resedit to edit these files. Sorry, but it's for your own good!" ,"True"
- if there is a window Movefileone then close window movefileone
- if there is a window movefiletwo then close window movefiletwo
- do restext ("TEXT", "Exit", colorauthoringpath)
- end if
- set cursor to watch
- put FullResList("T=ALL", "O=TNIS") into Onedata
- put MyPath into MovePathOne
- put "Current Stack" into Movefileone
- do restext("TEXT", "FinishOne", colorauthoringpath)
- end if
- do restext("TEXT", "MakeTwo", colorauthoringpath)